<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查看已发提醒对方阅读状态</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script src="<%=basePath%>/js/oa.js" type="text/javascript"></script>
   	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
	<script src="<%=basePath%>/js/table.js" type="text/javascript"></script>
	<script src="<%=basePath%>/js/checkbox1.js" type="text/javascript"></script>
	
	<script type="text/javascript">
		$(function() {
			
			$("#back").click(function () {
				window.location.href='<%=basePath%>/oa/call_perCallList.action?keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&size=${size1 }&num=${num1 }&forward=1&isSends=1';
			});
		});
		
	</script>
  </head>
  
  <body>
  	<div class="body-box">
  		<div class="map">
			<div class="map_con">
				您当前的位置：系统提醒 &gt; 个人提醒管理 &gt; 提醒汇总 &gt; 提醒查看 
			</div>
		</div>
		<div id="container">			
			<div class="top_search">
			    <fieldset>
				    <legend>
				  		<div class="search">查询条件</div>
				  	</legend>
				    <form action="<%=basePath%>/oa/call_callReadList.action" method="post">				    
				    	阅读状态：
				    	<s:select list="#{0:'==未读==',1:'==已读=='}" listKey="key" listValue="value" name="readType" headerKey="" headerValue="==所有=="></s:select>
				    	<input type="submit" value="查 询" class="link_input" name="btnsx">
				    	<input type="hidden" value="${id }" class="link_input" name="id">
				    	<input type="hidden" value="${num1 }" class="link_input" name="num1">
				    	<input type="hidden" value="${size1 }" class="link_input" name="size1">
				    	<input type="hidden" value="${beginTime }" class="link_input" name="beginTime">
				    	<input type="hidden" value="${endTime }" class="link_input" name="endTime">
				    	<input type="hidden" value="${keyWord }" class="link_input" name="keyWord">
				    </form>
				</fieldset>
			</div>
			<s:set name="userGrade" value="#session.adminuser.tbUserRole.tbUserGrade.id"></s:set>
		    <table border="0" cellpadding="0" cellspacing="0" class="mytable">
		    	 <tr class="fixedHeaderTr">
		    		<th width="10%">序列</th>
		    		<th width="40%">						
						管理机构/企业											
		    		</th>
		    		<th width="15%">						
						所属单位/所属县(市、区)、开发区行业/街道	
		    		</th>
		    		<th width="15%">
						所属部门/企业所属村/社区							
		    		</th> 
		    		<th width="10%">阅读状态</th>
		    		<th width="10%">阅读时间</th>			
		    	</tr>
		    	<s:if test="%{msgUserList.size>0}">
		    		<s:iterator value="msgUserList" id="msg" status="x">
				    	<tr>
				    		<td align="center">${x.index+1+(page.num-1)*page.size}</td>			    		
				    		<td align="center">
				    			<s:if test="%{#msg.userTypes==0}"><font color="green">${msg.tbUser.userRealName}(管理员)</font></s:if><!-- 管理机构 -->
				    			<s:else>${msg.tbCorpInfo.corpName}(企业)</s:else><!-- 企业 -->
				    		</td>			    						    		
				    		<td align="center">
				    			<s:if test="%{#msg.userTypes==0}">${msg.tbUser.tbUserUnit.deptName}</s:if><!-- 管理机构 -->
				    			<s:else>${msg.tbCorpInfo.corpName}</s:else><!-- 企业 -->
				    		</td>				    		
				    		<td align="center">
				    			<s:if test="%{#msg.userTypes==0}">${msg.tbUser.tbUserDept.deptName}</s:if><!-- 管理机构 -->
				    			<s:else><s:if test="%{#msg.tbCorpInfo.corpName!=null}">${msg.tbCorpInfo.corpName}</s:if></s:else><!-- 企业 -->
				    		</td>				    		
				    		<td align="center" >${msg.isRead==0?'<font color="red">未读</font>':'<font color="green">已读</font>' }</td>				    		
				    		<td align="center"><s:date name="#msg.readTime" format="yyyy-MM-dd HH:mm"/> </td>				    		
				    	</tr>
		    		</s:iterator>
			    </s:if>
			    <s:else>
			    	<tr><td colspan="6">没有数据</td></tr>
			    </s:else>
			    <tr>
			    	<td colspan="6">
				    	<input type="button" class="link_input" value="返 回" id="back" />
			    	</td>
			    </tr>
		    </table>
		    <div class="page">
		    	<jsp:include flush="true" page="../share/fenye.jsp">
				    <jsp:param name="url4page" value="/oa/call_callReadList.action?id=${id }&readType=${readType}&str_num1=${str_num1 }&str_size1=${str_size1 }&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }" />
			    </jsp:include>
		    </div>		
		</div>
		
		   
		<!-- 
		<div class="right_bottom">
			<div style="width:11px;float:left"><img src="<%=basePath%>/images/right_bottom.gif"/></div>
			<div style="width:16px;float:right"><img src="<%=basePath%>/images/right_rbottom.gif"/></div>
		</div>
		 -->
	</div>
  </body>
</html>
